import request from '@/utils/request'

/**
 * 添加角色
 * @param {*} role
 */
export function insert(role){
    return  request({ url: "/role", method: "post", data: role });
}

/**
 * 修改角色
 * @param {*} role
 */
export function update(role){
    return  request({ url: "/role", method: "put", data: role });
}

/**
 * 删除角色
 * @param {*} role
 */
export function remove(id){
    return  request({ url: "/role/"+id, method: "delete"});
}

/**
 * 查询角色
 * @param {*} role
 */
export function select(){
    return  request({ url: "/role", method: "get"});
}